﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="TTIServer.TTISettings.EditPresets"
	x:Name="Window"
	Width="502" BorderBrush="#019F9F9F" BorderThickness="0" Height="320" ResizeMode="NoResize" Topmost="True" WindowStyle="None" TextOptions.TextHintingMode="Animated" Foreground="#00000000" Background="{x:Null}" AllowsTransparency="True">

		<Window.Resources>
		  <Style TargetType="{x:Type ComboBox}" x:Key="ComboBoxStyle">
			  <Setter Property="Background" Value="#FF5584B4"/>
		  </Style>
		<Style TargetType="ListBoxItem" x:Key="ComboBoxItemBG">
			<Setter Property="Opacity" Value="1" />
			<Setter Property="Background"	Value="#FF5584B4"/>
		</Style>
		<ControlTemplate x:Key="DTK2100_PTKX40_ComboBox" TargetType="{x:Type ComboBox}">
			<Grid Background="#FF5584B4">
				<Viewbox>
					<ContentControl Margin="5"></ContentControl>
				</Viewbox>
			</Grid>
		</ControlTemplate>
		<ControlTemplate x:Key="DTK2100_PTKX40_Button" TargetType="{x:Type Button}">
			<Grid MaxHeight="25" Background="DarkGray">
				<Grid Margin="1"  x:Name="xTK_Background">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="Black" Offset="0.259"/>
							<GradientStop Color="#FF9f9f9f"/>
						</LinearGradientBrush>
					</Grid.Background>
					<Viewbox>
						<ContentControl Margin="3" FontSize="9" FontFamily="Segoe" Content="{TemplateBinding Content}" Foreground="White"/>
					</Viewbox>
				</Grid>
			</Grid>
			<ControlTemplate.Triggers>
				<Trigger Property="Button.IsPressed" Value="True">
					<Setter TargetName="xTK_Background" Property="Background">
						<Setter.Value>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="Black" Offset="0.259"/>
								<GradientStop Color="#FF7f7f7f"/>
							</LinearGradientBrush>
						</Setter.Value>
						
					</Setter>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		
	</Window.Resources>

	<Grid x:Name="LayoutRoot">
	 	<Border BorderThickness="5" 
                CornerRadius="3" VerticalAlignment="Center"
                HorizontalAlignment="Center">
	 		<Border.BorderBrush>
	 			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
	 				<GradientStop Color="#FF212121" Offset="0.056"/>
	 				<GradientStop Color="#FFAEAEAE"/>
	 			</LinearGradientBrush>
	 		</Border.BorderBrush>
			<Grid Width="490" Height="306" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
				<Grid.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="Black" Offset="0.052"/>
						<GradientStop Color="#FF898989"/>
					</LinearGradientBrush>
				</Grid.Background>


				<ComboBox x:Name="comboBox" HorizontalAlignment="Left" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" Foreground="Black" Margin="140,32,0,0" Style="{StaticResource ComboBoxStyle}" VerticalAlignment="Top" Width="234">
					   <ComboBox.Resources>
						<SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="#FF5584B4" />
						<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red" />
					   </ComboBox.Resources>
					<ComboBox.BorderBrush>
						<SolidColorBrush Color="#FFACACAC" Opacity="0.995"/>
					</ComboBox.BorderBrush>
					<ComboBoxItem Style="{StaticResource ComboBoxItemBG}" Content="Select an Item"></ComboBoxItem>
				</ComboBox>
				<GroupBox x:Name="ProgramBox" Header="Application Path" Visibility="Collapsed" HorizontalAlignment="Left" Margin="10,136,0,0" VerticalAlignment="Top" Height="150" Width="474">
					<Grid HorizontalAlignment="Left" Height="127.04" VerticalAlignment="Top" Width="462">
						<Image x:Name="image" Height="96" Width="96" Margin="10,15,0,16.04" Source="/TTIServer;component/Resources/Treblotto22HD_Cropped.png" HorizontalAlignment="Left"/>
						<TextBox x:Name="PathTextBox" HorizontalAlignment="Left" Height="23" Margin="124,51.96,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="281"/>
						<Label x:Name="label" Content="Please select the application you wish to run" HorizontalAlignment="Left" Margin="124,15,0,0" VerticalAlignment="Top" Width="281"/>
						<Button x:Name="button" Content="Browse" HorizontalAlignment="Left" Margin="124,91.04,0,0" VerticalAlignment="Top" Width="75"/>
					</Grid>
				</GroupBox>
				<Button x:Name="button1" Content="OK" Template="{StaticResource DTK2100_PTKX40_Button}" HorizontalAlignment="Left" Margin="140,104.04,0,0" VerticalAlignment="Top" Width="65" VerticalContentAlignment="Bottom" Click="button1_Click"/>
				<Button x:Name="button2" Content="Cancel" Template="{StaticResource DTK2100_PTKX40_Button}" HorizontalAlignment="Left" Margin="221.5,104.04,0,0" VerticalAlignment="Top" Width="66" IsCancel="True" VerticalContentAlignment="Bottom" Click="button2_Click"/>
				<Button x:Name="button3" Content="Default" Template="{StaticResource DTK2100_PTKX40_Button}" HorizontalAlignment="Left" Margin="306,104.04,0,0" VerticalAlignment="Top" Width="68" IsDefault="True" VerticalContentAlignment="Bottom" Click="button3_Click"/>
				<Label x:Name="label1" Content="What User Selected" HorizontalAlignment="Left" Margin="140,68.08,0,0" VerticalAlignment="Top" Width="234" Foreground="White" HorizontalContentAlignment="Center"/>
				<Button x:Name="button5" Content="Special Key" Template="{StaticResource DTK2100_PTKX40_Button}" HorizontalAlignment="Left" Margin="351.25,261,0,0" VerticalAlignment="Top" Width="86" Height="25" Click="button5_Click"/>
				<Button x:Name="button4" Content="Clear" Template="{StaticResource DTK2100_PTKX40_Button}" HorizontalAlignment="Left" Margin="251,261,0,0" VerticalAlignment="Top" Width="75" Height="25" Click="button4_Click"/>
				<Canvas Height="94" Margin="52.75,151,52.75,0" Width="384.5" Background="#FF5584B4" VerticalAlignment="Top">
					<Image x:Name="image1" Height="94" Width="384.5"/>
					<TextBox x:Name="textBox" Background="#FF5584B4" Height="94" FontSize="36" FontFamily="Tahoma" TextWrapping="NoWrap" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="" Width="384.5"/>
				</Canvas>


			</Grid>
			</Border>
		</Grid>
	
</Window>